<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var arr = ['a','b','c'];
        console.log(arr);
        console.log(arr.length);
        // 数组访问元素的方式：数组名[索引]
        console.log(arr[1]);

        var arr2 = new Array([2],[5]);
        console.log(arr2); 
        console.log(arr2.length);
        
        var arr3 = ['10'];
        console.log(arr3); 
        console.log(arr3.length);
    </script>
</body>
</html>